<!DOCTYPE html><html><head><title>激活转化</title><meta charset='utf-8'><link href='https://dn-maxiang.qbox.me/res-min/themes/marxico.css' rel='stylesheet'><style></style></head><body><div id='preview-contents' class='note-content'>
                        
                    



<h2 id="激活转化">激活转化</h2>

<blockquote>
  <p>共 <code>initParam</code> <code>search</code> <code>updatePlatform</code> <code>updateChannel</code>  四个接口</p>
</blockquote>

<hr>

<h3 id="initparam"><code>initParam</code></h3>

<p><strong>接口说明</strong> </p>

<pre class="prettyprint hljs-dark"><code class="hljs lsl">请求条件初始化<br>需要服务器初始化的请求条件有平台、渠道、事件分析进入步骤三个，其中前两个下拉框默认值为<span class="hljs-string">"0"</span>、新用户进入步骤默认值为<span class="hljs-string">"-99999"</span><br>开始和结束时间由前端自行初始化，默认为近<span class="hljs-number">1</span>天<br></code></pre>

<p><strong>URL</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs crystal"><span class="hljs-symbol">http:</span>/<span class="hljs-regexp">/115.159.207.95:9080/client</span><span class="hljs-regexp">/iterativeEventClient/init</span>Param.<span class="hljs-keyword">do</span><br></code></pre>

<p><strong>请求参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs groovy"><span class="hljs-number">1.</span> <span class="hljs-string">callback :</span> <span class="hljs-string">""</span><br></code></pre>

<p><strong>返回参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs dts">{<br><span class="hljs-symbol">    res:</span> <span class="hljs-string">"0"</span>,<br><span class="hljs-symbol">    platformItmes:</span> {<br>        全平台: <span class="hljs-string">"0"</span>,<br><span class="hljs-symbol">        iOS:</span> <span class="hljs-string">"2"</span>,<br>        安卓: <span class="hljs-string">"3"</span>,<br>        通用: <span class="hljs-string">"9"</span><br>    },<br><span class="hljs-symbol">    channelItmes:</span> {<br>        全渠道: <span class="hljs-string">"0"</span>,<br>        <span class="hljs-number">360</span>: <span class="hljs-string">"83"</span>,<br>        百度: <span class="hljs-string">"13"</span><br>    },<br><span class="hljs-symbol">    enterItmes:</span> {      <span class="hljs-meta"># 事件分析进入步骤</span><br>        全部事件分析进入步骤: <span class="hljs-string">"-99999"</span>,<br>        新用户进入步骤: <span class="hljs-string">"1"</span><br>    }<br>}<br></code></pre>

<hr>

<h3 id="search"><code>search</code></h3>

<p><strong>接口说明</strong> </p>

<pre class="prettyprint hljs-dark"><code class="hljs">根据请求条件，查询并返回结果<br></code></pre>

<p><strong>URL</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs crystal"><span class="hljs-symbol">http:</span>/<span class="hljs-regexp">/115.159.207.95:9080/client</span><span class="hljs-regexp">/iterativeEventClient/search</span>.<span class="hljs-keyword">do</span><br></code></pre>

<p><strong>请求参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs livecodeserver"><span class="hljs-number">1.</span> dstart : <span class="hljs-string">"2017-06-01"</span>          <span class="hljs-comment"># 开始时间 </span><br><span class="hljs-number">2.</span> dend : <span class="hljs-string">"2017-06-07"</span>            <span class="hljs-comment"># 结束时间</span><br><span class="hljs-number">3.</span> <span class="hljs-built_in">platform</span> : <span class="hljs-string">"0"</span>                 <span class="hljs-comment"># 平台    </span><br><span class="hljs-number">4.</span> channel : <span class="hljs-string">"0"</span>                  <span class="hljs-comment"># 渠道</span><br><span class="hljs-number">5.</span> enterId: <span class="hljs-string">"1"</span>                   <span class="hljs-comment"># 事件分析进入步骤ID</span><br><span class="hljs-number">6.</span> callback : <span class="hljs-string">""</span><br></code></pre>

<p><strong>返回参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs less">{<br>    <span class="hljs-attribute">res</span>: <span class="hljs-string">"0"</span>,<br>    <span class="hljs-attribute">dataList1</span>: [    # 激活设备步骤转化率数据列表<br>        {<br>            <span class="hljs-attribute">index</span>: <span class="hljs-number">1</span>,                    # 序号<br>            <span class="hljs-attribute">stepcode</span>: "<span class="hljs-number">2</span>,                # 步骤号<br>            <span class="hljs-attribute">stepcodeName</span>: <span class="hljs-string">"初始化"</span>,       # 步骤名称<br>            <span class="hljs-attribute">finishnum</span>: <span class="hljs-number">304</span>,              # 完成次数<br>            <span class="hljs-attribute">uuidnum</span>: <span class="hljs-number">60</span>,                 # 完成设备数<br>            <span class="hljs-attribute">distribute</span>: <span class="hljs-number">0.44</span>,            # 分步转化率<br>            <span class="hljs-attribute">totalAchieve</span>: <span class="hljs-number">0.2</span>            # 累计完成率<br>        }<br>    ],<br>    <span class="hljs-attribute">chartData1</span>: {    # 活设备步骤转化率图表柱形图数据<span class="hljs-number">1</span>（与chartData2结合拼成混合图）<br>        <span class="hljs-attribute">jsonStr</span>: <span class="hljs-string">"{"</span>columnkeys<span class="hljs-string">":["</span><span class="hljs-number">2016</span>-<span class="hljs-number">05</span>-<span class="hljs-number">18</span><span class="hljs-string">","</span><span class="hljs-number">2016</span>-<span class="hljs-number">05</span>-<span class="hljs-number">19</span><span class="hljs-string">"],"</span>minData<span class="hljs-string">":15,"</span>names<span class="hljs-string">":["</span>DAU<span class="hljs-string">"],"</span>maxData<span class="hljs-string">":3020,"</span>data<span class="hljs-string">":[[15,3020]],"</span>rowkeys<span class="hljs-string">":["</span>[日期]<span class="hljs-number">2016</span>-<span class="hljs-number">05</span>-<span class="hljs-number">18</span> - <span class="hljs-number">2016</span>-<span class="hljs-number">05</span>-<span class="hljs-number">19</span><span class="hljs-string">"],"</span>type<span class="hljs-string">":"</span>spline<span class="hljs-string">"}"</span>   <br>    },<br>    <span class="hljs-attribute">chartData2</span>: {    # 活设备步骤转化率图表折线图数据<span class="hljs-number">2</span>（与chartData1结合拼成混合图）<br>        <span class="hljs-attribute">jsonStr</span>: <span class="hljs-string">"{"</span>columnkeys<span class="hljs-string">":["</span><span class="hljs-number">2016</span>-<span class="hljs-number">05</span>-<span class="hljs-number">18</span><span class="hljs-string">","</span><span class="hljs-number">2016</span>-<span class="hljs-number">05</span>-<span class="hljs-number">19</span><span class="hljs-string">"],"</span>minData<span class="hljs-string">":15,"</span>names<span class="hljs-string">":["</span>DAU<span class="hljs-string">"],"</span>maxData<span class="hljs-string">":3020,"</span>data<span class="hljs-string">":[[15,3020]],"</span>rowkeys<span class="hljs-string">":["</span>[日期]<span class="hljs-number">2016</span>-<span class="hljs-number">05</span>-<span class="hljs-number">18</span> - <span class="hljs-number">2016</span>-<span class="hljs-number">05</span>-<span class="hljs-number">19</span><span class="hljs-string">"],"</span>type<span class="hljs-string">":"</span>spline<span class="hljs-string">"}"</span>   <br>    },<br>    <span class="hljs-attribute">dataListChannel</span>: [    # 渠道通过率（TOP20）数据列表<br>        {<br>            <span class="hljs-attribute">channelId</span>: <span class="hljs-string">"201"</span>,                    # 渠道ID<br>            <span class="hljs-attribute">channelName</span>: <span class="hljs-string">"百度"</span>,                  # 渠道名称<br>            <span class="hljs-attribute">beginnum</span>: <span class="hljs-number">3014</span>,                      # 点击icon设备数量<br>            <span class="hljs-attribute">endnum</span>: <span class="hljs-number">601</span>,                         # 进入游戏设备数量<br>            <span class="hljs-attribute">allRadio</span>: <span class="hljs-number">0.84</span>,                      # 整体通过率<br>            <span class="hljs-attribute">steps</span>: [    # 点击查看显示的数据列表<br>                {<br>                    <span class="hljs-attribute">index</span>: <span class="hljs-number">1</span>,                    # 序号<br>                    <span class="hljs-attribute">stepcode</span>: "<span class="hljs-number">2</span>,                # 步骤号<br>                    <span class="hljs-attribute">stepcodeName</span>: <span class="hljs-string">"初始化"</span>,       # 步骤名称<br>                    <span class="hljs-attribute">finishnum</span>: <span class="hljs-number">304</span>,              # 完成次数<br>                    <span class="hljs-attribute">uuidnum</span>: <span class="hljs-number">60</span>,                 # 完成设备数<br>                    <span class="hljs-attribute">distribute</span>: <span class="hljs-number">0.44</span>,            # 分步转化率<br>                }<br>            ]<br>        }       <br>    ],<br>    <span class="hljs-attribute">chartDataChannel</span>: {    # 渠道通过率（TOP20）图表数据<br>        <span class="hljs-attribute">jsonStr</span>: <span class="hljs-string">"{"</span>columnkeys<span class="hljs-string">":["</span><span class="hljs-number">2016</span>-<span class="hljs-number">05</span>-<span class="hljs-number">18</span><span class="hljs-string">","</span><span class="hljs-number">2016</span>-<span class="hljs-number">05</span>-<span class="hljs-number">19</span><span class="hljs-string">"],"</span>minData<span class="hljs-string">":15,"</span>names<span class="hljs-string">":["</span>DAU<span class="hljs-string">"],"</span>maxData<span class="hljs-string">":3020,"</span>data<span class="hljs-string">":[[15,3020]],"</span>rowkeys<span class="hljs-string">":["</span>[日期]<span class="hljs-number">2016</span>-<span class="hljs-number">05</span>-<span class="hljs-number">18</span> - <span class="hljs-number">2016</span>-<span class="hljs-number">05</span>-<span class="hljs-number">19</span><span class="hljs-string">"],"</span>type<span class="hljs-string">":"</span>spline<span class="hljs-string">"}"</span>   <br>    }<br>}<br></code></pre>

<hr>

<h3 id="updateplatform"><code>updatePlatform</code></h3>

<p><strong>接口说明</strong> </p>

<pre class="prettyprint hljs-dark"><code class="hljs">选择某平台时触发的操作。根据选中的平台，查询并返回新的渠道列表，以供前端更新<br></code></pre>

<p><strong>URL</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs crystal"><span class="hljs-symbol">http:</span>/<span class="hljs-regexp">/115.159.207.95:9080/client</span><span class="hljs-regexp">/iterativeEventClient/update</span>Platform.<span class="hljs-keyword">do</span><br></code></pre>

<p><strong>请求参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs livecodeserver"><span class="hljs-number">1.</span>  <span class="hljs-built_in">platform</span>： <span class="hljs-string">"2"</span>    <span class="hljs-comment"># 选中的平台</span><br><span class="hljs-number">2.</span>  callback : <span class="hljs-string">""</span><br></code></pre>

<p><strong>返回参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs css">{<br>    <span class="hljs-attribute">res</span>: <span class="hljs-string">"0"</span>,<br>    channelItmes: {<br>        全渠道: <span class="hljs-string">"0"</span><br>    }<br>}<br></code></pre>

<hr>

<h3 id="updatechannel"><code>updateChannel</code></h3>

<p><strong>接口说明</strong> </p>

<pre class="prettyprint hljs-dark"><code class="hljs">选择某渠道时触发的操作。根据选中的渠道，查询并返回新的平台列表，以供前端更新<br></code></pre>

<p><strong>URL</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs crystal"><span class="hljs-symbol">http:</span>/<span class="hljs-regexp">/115.159.207.95:9080/client</span><span class="hljs-regexp">/iterativeEventClient/update</span>Channel.<span class="hljs-keyword">do</span><br></code></pre>

<p><strong>请求参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs 1c"><span class="hljs-number">1</span>.  channel： <span class="hljs-string">"2"</span>    <span class="hljs-meta"># 选中的渠道</span><br><span class="hljs-number">2</span>.  callback : <span class="hljs-string">""</span><br></code></pre>

<p><strong>返回参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs css">{<br>    <span class="hljs-attribute">res</span>: <span class="hljs-string">"0"</span>,<br>    platformItmes: {<br>        全平台: <span class="hljs-string">"0"</span><br>    }<br>}<br></code></pre></div></body></html>